package cn.piesat.vo.role;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 修改角色对象参数
 * @author zyp
 * @date 2021/3/9
 */
public class UpdateRoleVO {
    @NotBlank(message = "角色ID不能为空")
    private String id;
    @NotBlank(message = "角色名称不能为空")
    private String name;
    private String mark;
    private String description;
    @NotNull(message = "角色状态不能为空")
    private Integer lockState;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMark() {
        return mark;
    }

    public void setMark(String mark) {
        this.mark = mark;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getLockState() {
        return lockState;
    }

    public void setLockState(Integer lockState) {
        this.lockState = lockState;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "UpdateRoleVO{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", mark='" + mark + '\'' +
                ", description='" + description + '\'' +
                ", lockState=" + lockState +
                ", createTime=" + createTime +
                '}';
    }
}
